package com.xm.settlement.service;

import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.util.List;

import com.baomidou.framework.service.ISuperService;
import com.xm.settlement.commons.base.ApiSQLException;
import com.xm.settlement.commons.shiro.ShiroUser;
import com.xm.settlement.commons.utils.PageInfo;
import com.xm.settlement.model.User;
import com.xm.settlement.model.vo.UserVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * User 表数据服务层接口
 *
 */
public interface IUserService extends ISuperService<User> {

    List<User> selectByLoginName(UserVo userVo);

    void insertByVo(UserVo userVo, ShiroUser shiroUser) throws InterruptedException, URISyntaxException, ApiSQLException, UnsupportedEncodingException;

    UserVo selectVoById(Long id);

    void updateByVo(UserVo userVo);

    void updatePwdByUserId(Long userId, String md5Hex);

    void selectDataGrid(PageInfo pageInfo);

    void deleteUserById(Long id);

    void insertByteArrayToFile(MultipartFile multiFile, HttpServletRequest request)throws Exception;
}